import {
	get,post,postJson
} from './request.js';

// 登录
export const login = data => postJson('/sys/login', data);

// 设备列表
export const baseMachinelist = data => get('/base_machine/baseMachine/list', data);

// 工单列表
export const gettaskbill = data => get('/machine/gwj/gettaskbill', data);

// 设备详情页
export const getSbxx = data => get('/machine/gwj/getSbxx', data);

// 设备启动
export const updateToStart = data => postJson('/machine/gwj/updateToStart', data);

// 详情页获取产量
export const getMachineToYield = data => get('/machine/gwj/getMachineToYield', data);

// 报工
export const putDispatch = data => postJson('/machine/gwj/putDispatch', data);

// 更新工单结束
export const updateToEnd = data => postJson('/machine/gwj/updateToEnd', data);

